<?php

/*
return array(
    '模块名1' => array(
        'class'   => 'memcache',    // 使用哪个PECL扩展 Memcache/Memcached，缺省 Memcache
        'servers' => array(
            array(
                'host'       => '127.0.0.1',
                'port'       => '11211',
                'persistent' => true,
                'weight'     => 40,
            ),
            array(
                'host'       => '127.0.0.2',
                'port'       => '11211',
                'persistent' => true,
                'weight'     => 60,
            ),
        ),
    ),
    '模块名2' => array(
        ......
    ),
);
*/

return array(
    'default' => array(
        'servers' => array(
            array(
                'host'       => '127.0.0.1',
                'port'       => '11211',
            ),
        ),
    ),
    'static' => array(
        'servers' => array(
            array(
                'host'       => '10.103.252.42',
                'port'       => '11211',
            ),
        ),
    ),
    'queue' => array(
        'servers' => array(
            array(
                'host'       => '127.0.0.1',
                'port'       => '11211',
            ),
        ),
    ),
    'test_pecl_memcached' => array(
        'class'   => 'Memcached',
        'servers' => array(
            array(
                'host'       => '10.103.252.42',
                'port'       => '11211',
            ),
            array(
                'host'       => '10.103.252.42',
                'port'       => '11212',
            ),
            array(
                'host'       => '10.103.252.42',
                'port'       => '11213',
            ),
        ),
    ),
);